package com.chen.script.feign;

import com.chen.root.base.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author ChenJinLong
 * @date 2023/6/25
 **/
@ConditionalOnProperty(value = "win-server.enable", havingValue = "true")
@FeignClient(name = "remoteSystemService", url = "${win-server.url}")
public interface RemoteSystemService {

    @PostMapping("/updateSystemDateTime")
    @ApiOperation(value = "更新系统时间",notes = "更新系统时间")
    R<Boolean> updateSystemDateTime(@RequestParam("date") String date,
                                    @RequestParam("time") String time);

}
